package com.smartfactory.sail.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smartfactory.sail.entity.Logistics;
import com.smartfactory.sail.vo.logistics.ListLogisticsForStorage;
import com.smartfactory.sail.vo.order.OrderLogisticsResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 物流信息表 Mapper 接口
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
@Mapper
public interface LogisticsMapper extends BaseMapper<Logistics> {
    List<OrderLogisticsResp> findLogistics(@Param("orderId") long orderId);

    List<String> companys();

    void confirm(@Param("id") long id);

    int packingCount(@Param("itemId") long itemId, @Param("orderId") long orderId);

    IPage<ListLogisticsForStorage> getSendGoodsList(IPage<ListLogisticsForStorage> page, @Param("ew") Wrapper<ListLogisticsForStorage> queryWrapper);
}
